/**
 * 个人中心页面
 * huruqing
 */


var my = {
    created: function() {
        // 获取url上参数isLogin
        var search = location.search;
        var phone = search.replace(/^\?phone=(.*)/, '$1');
        if (phone) {
            $('#phone').text(phone.slice(-4));
            $('#phone').removeAttr('href');
        } else {
            $('#phone').text('立即登录');
        }
    }
}

my.created();